OrientationProvider

interface OrientationProvider

An OrientationProvider provides the ViewingDirection of one orientation input like an gyroscope.

Functions

disable
Link copied to clipboard
abstract fun disable()
Disables the OrientationProvider
enable
Link copied to clipboard
abstract fun enable()
getViewingDirection
Link copied to clipboard
abstract fun getViewingDirection(): ViewingDirection
Returns the current ViewingDirection of the OrientationProvider.
isEnabled
Link copied to clipboard
abstract fun isEnabled(): Boolean
Returns true if the OrientationProvider is enabled, else false.